package com.cxy.util;

import java.awt.Image;
import java.awt.Toolkit;
import java.util.HashMap;
import java.util.Map;


public class ImageUtil {
	private static Toolkit tk = Toolkit.getDefaultToolkit();
	private static Image[] tankImages = null;
	private static Map<String ,Image> imgs = new HashMap<String, Image>();
	static{
		tankImages = new Image[]{
			tk.getImage(PropertiesUtil.class.getClassLoader().getResource("images/tankL.gif")),
		};
		imgs.put("L",tankImages[0]);
		System.out.println(tankImages[0].getHeight(null));
	}
	public Image getImage(String index){
		return imgs.get(index);
	}
}
